package com.jeespring.designpattern.factory;

/**
 * @Title: FactoryPattern
 * @Description:
 * @Author 张朝阳
 * @Date 2021/1/3 14:58
 */
public class FactoryPattern {
    public static void main(String[] args) {
        FruitFactory fruitFactory = new FruitFactory();

        Fruit apple = fruitFactory.getFruit("苹果");
        apple.produce();
    }
}
